package com.wgu.crawl.service.impl;

import com.wgu.crawl.CrawlChapter;
import com.wgu.crawl.repo.CrawlChapterRepository;
import com.wgu.crawl.service.CrawlChapterService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.transaction.Transactional;

/**
 * Created by w on 2019/6/27.
 */
@Service
public class CrawlChapterServiceImpl implements CrawlChapterService {
    @Resource
    private CrawlChapterRepository crawlChapterRepository;

    @Override
    @Transactional
    public CrawlChapter save(CrawlChapter crawlChapter) {
        return crawlChapterRepository.save(crawlChapter);
    }
}
